#include<bits/stdc++.h>
using namespace std;

const int N = 100005;

int r[N];
bool attack[N];

int main()
{
    freopen("duel.in", "r", stdin);
    freopen("duel.out", "w", stdout);
    int n;
    scanf("%d", &n);
    for(int i = 1; i <= n; i++)
    {
        scanf("%d", &r[i]);
        attack[i] = true;
    }
    sort(r + 1, r + 1 + n);
    int sum = n;
    int l = 1;
    for(int i = 2; i <= n; i++)
    {
        while(r[l] == -1) l++;
        if(r[l] != -1 && r[i] > r[l])
        {
            r[l] = -1;
            sum--;
        }
    }
    printf("%d\n", sum);
    return 0;
}